#ifndef TESAT_PROTOCOL_H_
#define TESAT_PROTOCOL_H_

#include <string>
#include <vector>
#include <boost/array.hpp>
#include <skyroad/protocol/protocol.hpp>

struct PING_REQ 
{
    std::string user_name;
    std::string password;
};


struct PING_RESULT
{
    std::string state;
    std::string errormsg;

};

template<typename Archiver>
void serialize(Archiver& ar, PING_REQ& req, const unsigned int ver)
{
    ar & NVP("user_name",req.user_name);
    ar & NVP("password",req.password);
}

template<typename Archiver>
void serialize(Archiver& ar, PING_RESULT& rep, const unsigned int ver) 
{
    ar & NVP("state",rep.state);
    ar & NVP("errormsg",rep.errormsg);
}

#endif